#ifndef _ADMIN_H__
#define _ADMIN_H__

#include "book.h"

#define MAX_BOOK_NUM 10

class admin
{
private:
    string book_name;

    vector<book> book_v;

public:
    // 构造函数
    admin();
    //析构函数
    ~admin();

    //增加书籍
    void add_book(const book & new_book);

    //删除书籍
    void delete_book(const string &book_name);

    //修改书籍信息
    void modify_book(const string & book_name , const book & updated_book);

    //查询书籍(按书名查找)
    book search_book(const string & book_name);

    //查看所有书籍(遍历)
    void view_all_books() const;

public:
    bool find_book_name(book book_temp);

};

#endif